package com.example.tianling.common.vo;

import com.example.tianling.entity.UserInfoEntity;
import lombok.Data;

import java.util.Map;

@Data
public class UserInfoVo {
    private Integer level;
    private Integer experience;
    private Integer isReward;
    private Integer trainTicket;
    private Integer aiTicket;
    private Map<String, Object> reward;

    public UserInfoVo(UserInfoEntity userInfo) {
        this.level = userInfo.getLevel();
        this.experience = userInfo.getExperience();
        this.isReward = userInfo.getIsReward();
        this.trainTicket = userInfo.getTrainTicket();
        this.aiTicket = userInfo.getAiTicket();
        this.reward = null;
    }
}
